import React from 'react'
import { View, Text } from 'react-native'
import { createMaterialTopTabNavigator } from '@react-navigation/material-top-tabs';
const Tab = createMaterialTopTabNavigator();

const home = () => {
    return (
        <Tab.Navigator initialRouteName={"tab1"}>
            <Tab.Screen name="tab1" component={_ => {
                return <View>
                    <Text>tab1</Text>
                </View>
            }}></Tab.Screen>
            <Tab.Screen name="tab2" component={_ => {
                return <View>
                    <Text>tab2</Text>
                </View>
            }}></Tab.Screen>
        </Tab.Navigator>
    )
}

export default home
